package framework.account;

import java.util.Date;

public class Transaction implements IEntry {


    public Transaction(String type, float amount, STATUS status) {
        this.type = type;
        this.amount = amount;
        this.status = status;
        this.date = new Date();
    }

    private float amount;

    private String type;

    private STATUS status;

    private Date date;


    public float getAmount() {
        return amount;
    }


    public void setAmount(float amount) {
        this.amount = amount;
    }


    public String getType() {
        return type;
    }


    public void setType(String type) {
        this.type = type;
    }

    public STATUS getStatus() {
        return status;
    }

    public void setStatus(STATUS status) {
        this.status = status;
    }

    public Date getDate() {
        return date;
    }
}